package com.changxianggu.cloud.crawler.core.modules.university.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 教材扩展信息
 * </p>
 *
 * @author liuyuantao
 * @since 2020-02-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cxg_book_attribute")
public class UniversityBookAttribute extends Model<UniversityBookAttribute> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * book表book_id
     */
    @TableField("book_id")
    private Integer bookId;

    /**
     * ISBN便于统一修改内容
     */
    @TableField("ISBN")
    private String bookIsbn;

    /**
     * 相关资源url地址
     */
    @TableField("resource_url")
    private String resourceUrl;


    /**
     * 简介
     */
    @TableField("introduction")
    private String introduction;

    /**
     * 目录
     */
    @TableField("catalog")
    private String catalog;

    /**
     * 字数
     */
    @TableField("word_number")
    private Integer wordNumber;

    /**
     * 页码
     */
    @TableField("page_number")
    private Integer pageNumber;

    /**
     * 装帧
     */
    @TableField("Binding")
    private String binding;

    /**
     * 开本
     */
    @TableField("format")
    private String format;

    /**
     * 高教社物料号
     */
    @TableField("pk_id")
    private String pkId;

    /**
     * 是否新形态 0否，1是
     */
    @TableField("is_new_pattern")
    private Integer isNewPattern;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
